package com.parfinex.java.phase1.module2.task10;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Documented;
import java.lang.annotation.Target;
import java.lang.annotation.*;

/**
 * @version 1.0
 * @author: Li Jiahui
 * @date: 2020/10/24 18:26
 */
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target({ElementType.TYPE,ElementType.CONSTRUCTOR,ElementType.FIELD,ElementType.METHOD})
public @interface MyAnnotation {
    public String value()default "默认值";//声明一个String类型的成员变量
    public String value2()default "word";
}
